package org.example.model;

public class LongIntegerResult implements Comparable<LongIntegerResult> {

    public Long id;

    public Integer value;

    public LongIntegerResult(Long id, Integer value) {
        this.id = id;
        this.value = value;
    }

    @Override
    public String toString() {
        return String.format("%d|%d", id, value);
    }

    @Override
    public int compareTo(LongIntegerResult o) {
        return Long.compare(this.id, o.id);
    }
}
